package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.ShouhouInfo;
import com.ruoyi.system.domain.ShouhouParts;
import com.ruoyi.system.domain.ShouhouRecord;
import com.ruoyi.system.domain.ShouhouWuliu;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface EpmShouhouMaintainMapper {
    List<ShouhouInfo> list(ShouhouInfo shouhouInfo);


    void insertShouhouInfo(ShouhouInfo shouhouInfo);

    void insertShouhouWeixiu(ShouhouInfo shouhouInfo);

    // 维修操作——修改维修表
    void updateShouhouWeixiu(ShouhouInfo shouhouInfo);

    void updateMachineCondition(String snId);

    void updateFailureCondition(ShouhouInfo shouhouInfo);

    //    插入物流表数据
    //    删除信息表和维修表数据
    //    获取数据
    void insertShouhouWuliu(ShouhouWuliu shouhouWuliu);
    ShouhouRecord get(String snId);

    //    插入信息表中
    void addRecordInformation(ShouhouRecord records);

    // 防止高并发
    void lockShouhouInfo(String snId);

    void sendShouhouInfo(String snId);
    void sendShouhouWeixiu(String snId);


    void update(ShouhouInfo shouhouInfo);


    List<ShouhouParts> partsQuery(String snId);

    void partsAdd(ShouhouParts shouhouParts);

    void partsDelete(Integer id);
}
